package cn.funeralobjects.common.service.entity;

import cn.funeralobjects.common.model.CreateTime;
import cn.funeralobjects.common.model.UpdateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 基础的自增
 *
 * @author FuneralObjects
 * Create date: 2020/4/15 3:45 PM
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public abstract class BaseDelSaltDateEntity extends BaseDelSaltEntity implements CreateTime, UpdateTime {

    /**
     * 创建日期
     */
    private Date createTime;
    /**
     * 更新日期
     */
    private Date updateTime;

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
